package com.tarena.action;

import com.opensymphony.xwork2.inject.Context;
import com.tarena.bo.EmpDao;
import com.tarena.vo.Emp;

/**
 * @删除员工
 * @author Wangpeihu
 * @since 31/12/2009
 * @Team [Never give up]
 */
public class DeleteEmpAction {

	private EmpDao ed ;
	private Emp emp;
	public String execute() {
			String[] empId = request.getParameterValues("empId");
			Integer[] empIdInt = new Integer[empId.length];
			if (empId != null && empId.length > 0) {
				for (int i = 0; i < empIdInt.length; i++) {
					empIdInt[i] = Integer.parseInt(empId[i]);
				}
				ed.deleteEmp(empIdInt);
			}
		return "SUCCESS";
	}

}
